* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.input-section {
    display: flex;
    margin-bottom: 30px;
    gap: 10px;
    flex-wrap: wrap;
}

#url-input {
    flex: 1;
    min-width: 300px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

#test-count {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
}

#test-button {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#test-button:hover {
    background-color: #2980b9;
}

#test-button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.loading {
    display: none;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.result-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.result-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    flex: 1 1 200px;
}

.result-card h3 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 18px;
}

.result-card p {
    font-size: 16px;
    margin-bottom: 8px;
}

.result-card .time {
    font-size: 24px;
    font-weight: bold;
    color: #3498db;
}

.chart-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
    height: 400px;
}

.summary {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.summary h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.summary p {
    font-size: 16px;
    margin-bottom: 10px;
}

.summary .highlight {
    font-weight: bold;
    color: #3498db;
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    color: #7f8c8d;
    font-size: 14px;
}

@media (max-width: 768px) {
    .input-section {
        flex-direction: column;
    }
    
    #url-input, #test-count, #test-button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .chart-container {
        height: 300px;
    }
} 